package me.zingon.doc.dao;

import me.zingon.doc.model.Catalog;
import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
* Created by ZTCGenerator<zingon@aliyun.com> on 2018-5-31.
*/
public interface CatalogDao {

    int insert(Catalog catalog);

    int delete(Catalog catalog);

    int deleteByIds(@Param("ids") Integer[] ids);

    int update(Catalog catalog);

    Catalog getById(@Param("id") Integer id);

    List<Catalog> list(Catalog catalog);

    List<Catalog> listByProjectIdWithUserId(@Param("projectId") Integer projectId,@Param("userId") Integer id);

    int logicDeleteByIds(@Param("ids") Integer[] ids);
}